import tkinter
from tkinter import *
def print_item(event):
    print(mylist.get(mylist.curselection()))

root = tkinter.Tk()
mylist = Listbox(root)
mylist.bind('<ButtonRelease-1>',print_item)

for line in range(100):
    mylist.insert(END,'This in my number' + str(line))

mylist.pack(side=LEFT,fill = BOTH)

scrollbar = Scrollbar(root)
scrollbar.pack(side = RIGHT,fill=Y)
scrollbar.config(command = mylist.yview)
mylist.configure(yscrollcommand = scrollbar.set)

root.mainloop()